package com.two.service.caipin.service;

import com.github.pagehelper.PageInfo;
import com.two.common.entity.CollectVo;
import com.two.common.entity.Cookstyle;
import com.two.common.util.CommonResult;
import com.two.common.entity.Menu;
import com.two.service.caipin.vo.BohuiVo;
import com.two.service.caipin.vo.DelectLeiVo;
import com.two.service.caipin.vo.RestaurantVo;
import com.two.service.caipin.vo.XicanVo;

import java.util.List;

public interface CaipinService{
    CommonResult fingall(Integer currentPage,Integer pageSize);

    int delectByidq(String id);

    int update(Menu menu);

    int insertcai(Menu menu);

   CommonResult moselect(String disName, Integer currentPage, Integer pageSize);

    CommonResult shenselect(Integer currentPage, Integer pageSize,String token, RestaurantVo restaurantVo);

    CommonResult lei(String mid);
    PageInfo<Menu> selectAll(Integer currentPage, Integer pageSize, Integer userid, CollectVo collectVo);

    CommonResult xiu(String usermonicker, String id);

    CommonResult bo(String usermonicker, BohuiVo bohuiVo,String id);

    CommonResult leiDelete(DelectLeiVo delectLeiVo);

    CommonResult leicname(Integer currentPage,Integer pageSize);

    CommonResult caicname(Integer cid,Integer rid);

    CommonResult updateleiname(Integer cid,String style);

    CommonResult allxi();

    CommonResult cidName(Integer rid);

    CommonResult ridallcaipin(Integer rid,Integer cid,String dishname,String usermonicker);

    CommonResult selectlei(XicanVo xicanVo);

    CommonResult selectcaiall(Integer currentPage,Integer pageSize);

    CommonResult insertcaixi(Cookstyle cookstyle);

    CommonResult updatecaixi(Cookstyle cookstyle);

    Menu goods(String mid);

    CommonResult mselect(String mid,Integer rid);

    List<Menu> collectSelect(Integer userid);
}
